package com.example.controller;

import com.example.common.AjaxJson;
import com.example.service.CutFolderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
//梅超风的九阴白骨爪
//乔峰的降龙十八掌
//老顽童的
// 霍元甲
@Api(tags = "剪切文件夹")
@RestController
@RequestMapping("/cutFolder")
public class CutFolderController {

    @Autowired
    private CutFolderService cutFolderService;


    @RequestMapping(value="/cutFolder" , method= RequestMethod.GET)
    @ApiOperation(value = "剪切文件夹")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "srcFolder", value = "源文件夹路径", dataType = "String"),
            @ApiImplicitParam(paramType = "query", name = "srcNameSplit", value = "源文件名称，多个用逗号隔开", dataType = "String"),
            @ApiImplicitParam(paramType = "query", name = "targetFolder", value = "目标文件夹路径", dataType = "String"),
    })
    public AjaxJson cutFolder(String srcFolder, String srcNameSplit, String targetFolder) {
        return cutFolderService.cutFolder(srcFolder, srcNameSplit, targetFolder);
    }
}
